import http  from "@/utils/http";
// 订单
// 获取与预填写订单 /member/order/pre
export function getmemberorderpre(){
    return http({
        url:'/member/order/pre',
        method:'get'
    })
}

// 提交订单 /member/order
export function postmemberorder(data){
    return http({
        url:'/member/order',
        method:'post',
        data
    })
}

// 订单详情 
export function getmemberorderdetail(id){
    return http({
        url:`/member/order/${id}`,
        method:'get'
    })
}

// 支付 
export function  getpaymock(orderId){
    return http({
        url:'/pay/mock',
        data:{orderId}
    })
}

// 获取订单列表 
export function getmemberorder(data){
    return http({
        url:'/member/order',
        method:'get',
        data
    })
}